//
//  RecPKVotedetailinfo.m
//  WuLi
//
//  Created by Gollum on 16/09/09
//  Copyright (c) Gollum. All rights reserved.
//

#import "RecPKVotedetailinfo.h"
#import "RecPKVoteoptioninfolist.h"

@implementation RecPKVotedetailinfo

+ (NSDictionary *)objectClassInArray{
    return @{@"voteOptionInfoList" : [RecPKVoteoptioninfolist class]};
}
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    NSMutableArray <RecPKVoteoptioninfolist *> *optionInfolistArr = [NSMutableArray array];
    NSArray *valueArray = value;
    if ([key isEqualToString:@"voteOptionInfoList"]) {
        for (NSDictionary *dic in valueArray) {
            RecPKVoteoptioninfolist *optionInforList = [RecPKVoteoptioninfolist modelWithDic:dic];
            [optionInfolistArr addObject:optionInforList];
        }
        _voteOptionInfoList = optionInfolistArr;
    }

}
@end
